package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.entity.DetailReceipt;
import com.ruoyi.common.core.domain.entity.HeadReceipt;
import com.ruoyi.common.core.domain.entity.InventoryProduct;
import com.ruoyi.common.core.domain.entity.ReceiptFrom;

import java.util.List;

/**
 * 库存单据 业务层处理
 *
 * @author KC
 */
public interface InventoryService {

    /**
     * 库存货品查询
     */
    public List<InventoryProduct> selectInventoryProduct(InventoryProduct bo);

    /**
     * 库存单据头表查询
     */
    public List<HeadReceipt> headReceiptQuery(HeadReceipt bo);

    /**
     * 库存单据明细查询
     */
    public List<DetailReceipt> detailReceiptQuery(DetailReceipt bo);

    /**
     * 货品发生汇总查询
     */
    public List<DetailReceipt> inventorySummaryQuery(DetailReceipt bo);

    /**
     * 库存指定单据查询
     */
    public HeadReceipt selectHeadReceiptById(String SystematicReceipt);

    /**
     * 保存库存单据信息
     */
    int saveInventoryReceipt(ReceiptFrom bo);

    /**
     * 修改库存单据
     */
    int updateInventoryReceipt(ReceiptFrom bo);

    /**
     * 删除库存单据
     */
    int delInventoryReceipt(List<DetailReceipt> bo);

}
